<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>贪吃蛇游戏</title>
<style>
body {
  width: 200px;
  margin: auto;
}
#c {
  border: 2px solid #d3d3d3;
  margin-top: 10px;
}
</style>
</head>
<body>
  <canvas id="c" width="200" height="200"></canvas>
  <p>用ASDW键控制，不要直接后退</p>
</body>
</html>
<script src="1k2.js"></script>